package io.renren.modules.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 优惠券用户使用表
 */
@ApiModel(value = "io-renren-modules-shop-entity-UserAndCoupon")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "user_and_coupon")
public class UserAndCoupon {
    /**
     * 主键
     */
    @TableId(value = "user_and_coupon_id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Integer userAndCouponId;

    /**
     * 用户id
     */
    @TableField(value = "openid")
    @ApiModelProperty(value = "用户id")
    private String openid;

    /**
     * 优惠券id
     */
    @TableField(value = "coupon_id")
    @ApiModelProperty(value = "优惠券id")
    private Integer couponId;

    public static final String COL_USER_AND_COUPON_ID = "user_and_coupon_id";

    public static final String COL_OPENID = "openid";

    public static final String COL_COUPON_ID = "coupon_id";
}